package com.mysoft.gfyx.marketdevelop.service;

import java.text.ParseException;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 公共方法
 */
public interface CommonService {
    enum BigDataType {
        DEVELOPER, SUPPLIER, SALE, BUILDING, LAND, PURCHASE, WINBID, RADARPROJECT
    }

    enum OpptyStatus {
        NUM, NUM1, NUM2, NUM3, NUM4
    }

    static final String FromDevicePc = "pc";
    static final String FromDeviceClueMini = "clue-mini";

    Date dateTimeStringToDate(String dateTimeString, String pattern) throws ParseException;

    String dateToDateString(Date date);

    String checkProvinceProfit(String provinceCode);

    String checkCityProfit(String provinceCode);

    String checkAreaProfit(String userSelectAreaCode);

    String getOpptyStatus(String dataSource, String dataSourceId, boolean isDetailPage);

    Map<String, String> getOpptyStatusBatch(String dataSource, List<String> dataSourceId);

    boolean updateOpptyStatus(String dataSource, String dataSourceId, int status);
}

